package com.springapp.mvc.dao;

import com.springapp.mvc.entity.Group;
import com.springapp.mvc.entity.Role;

import java.util.List;

/**
 * Created by dbychkov on 19.12.2014.
 */
public interface GroupDao {

    List<Role> getRolesByGroupId(Long groupId);

    long createGroup(String groupName);

    Group getGroupById(Long id);

    Group getGroupByName(String name);

    List<Group> getAllGroups();
}
